package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckItem;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface CheckItemService {

    @Transactional(readOnly = true)
    PageResult pageQuery(QueryPageBean queryPageBean);

    @Transactional(readOnly = true)
    Page<CheckItem> findAll(String queryString);

    void add(CheckItem checkItem);

    void delete(Integer id);

    void edit(CheckItem checkItem);

    @Transactional(readOnly = true)
    CheckItem findById(Integer id);



}
